home *** CD-ROM | disk | FTP | other *** search
- function interrupt()
- {
- clearInterval(showExitBtnID);
- clearInterval(countdownID);
- nmSeconds = nmStartSeconds;
- getUrl("Lingo:spriteDialog.interruptDialog()", "");
- _visible = false;
- }
- function startCountdown()
- {
- _visible = true;
- toggleButtonsEnabled(true);
- nmSeconds = nmStartSeconds = 10;
- countdownID = setInterval(this,"countdown",1000);
- showExitBtnID = setInterval(this,"showExitBtn",4000);
- }
- var arrButtons = [];
- var _tl = this;
- promoXML = new XML();
- promoXML.ignoreWhite = true;
- promoXML._rootTl = this;
- promoXML.onLoad = function()
- {
- var topChild = this.firstChild.firstChild;
- var thumbLinkPath = topChild.firstChild.firstChild;
- var promosNode = topChild.nextSibling;
- var _loc3_ = promosNode.firstChild;
- var i = 0;
- while(_loc3_ != null)
- {
- this._rootTl["promo" + (i + 1)] = new Object();
- var _loc1_ = this._rootTl["promo" + (i + 1)];
- _loc1_.section = _loc3_.attributes.id;
- _loc1_.header = _loc3_.firstChild.attributes.header;
- _loc1_.textcolor = _loc3_.firstChild.attributes.textcolor;
- _loc1_.overtextcolor = _loc3_.firstChild.attributes.overcolor;
- _loc1_.image = _loc3_.firstChild.attributes.image;
- _loc1_.overlay = _loc3_.firstChild.attributes.overlay;
- _loc1_.loadDetails = _loc3_.firstChild;
- _loc1_.thumbLinkPath = Tardis.ASSETS_FOLDER + thumbLinkPath;
- var startX = 26;
- var xInc = 19.5;
- var imgW = 134;
- this._rootTl.attachMovie("promoClip","promoClip" + i,i,{_x:startX + (imgW + xInc) * i,_y:164});
- var _loc2_ = this._rootTl["promoClip" + i];
- trace("targ: " + _loc2_);
- arrButtons.push(_loc2_);
- _loc2_.id = i + 1;
- var myFormat = new TextFormat();
- myFormat.color = "0x" + _loc1_.textcolor;
- _loc2_.promoHeadHolder.promoHead.text = _loc1_.header;
- _loc2_.promoHeadHolder.promoHead.setTextFormat(myFormat);
- _loc2_.promoGraphic.loadMovie(_loc1_.thumbLinkPath + _loc1_.image);
- _loc2_.onPress = this._rootTl.buttonPress;
- _loc2_.onRollOver = this._rootTl.buttonRollover;
- _loc2_.onRollOut = _loc2_.onReleaseOutside = this._rootTl.buttonRollout;
- _loc3_ = _loc3_.nextSibling;
- i++;
- }
- gotoAndStop("done");
- };
- showExitBtn = function()
- {
- trace("showExitBtn()");
- Tardis.footer.mc_exit.gotoAndStop("off");
- Tardis.footer.mc_exit.clickFunction = "exitDisc";
- Tardis.footer.mc_exit._visible = true;
- clearInterval(showExitBtnID);
- };
- buttonPress = function()
- {
- var _loc1_ = this;
- _loc1_._parent.interrupt();
- _loc1_._parent.toggleButtonsEnabled(false);
- Tardis.sideMenu.loadItem(_loc1_._parent["promo" + _loc1_.id].loadDetails,1);
- };
- buttonRollout = function()
- {
- var _loc2_ = this;
- var _loc1_ = new Color(_loc2_.promoHeadHolder);
- _loc1_.setRGB("0x" + _loc2_._parent["promo" + _loc2_.id].textcolor);
- };
- buttonRollover = function()
- {
- var _loc2_ = this;
- var _loc1_ = new Color(_loc2_.promoHeadHolder);
- _loc1_.setRGB("0x" + _loc2_._parent["promo" + _loc2_.id].overtextcolor);
- };
- toggleButtonsEnabled = function(state)
- {
- var _loc2_ = state;
- var _loc1_ = 0;
- while(_loc1_ < arrButtons.length)
- {
- arrButtons[_loc1_].enabled = _loc2_;
- _loc1_ = _loc1_ + 1;
- }
- };
- countdown = function()
- {
- nmSeconds--;
- if(nmSeconds == 1)
- {
- Tardis.splash.endSoundLoop();
- }
- else if(nmSeconds == 0)
- {
- clearInterval(countdownID);
- Tardis.creditsComplete();
- }
- };
- startConnTest = function()
- {
- };
- startCountdown();
- startConnTest();
- stop();
-